<?php

namespace app\common\validate\Schoolwall;

use think\Validate;

class Code extends Validate
{
    // 验证规则
    protected $rule =   [
        'email'   => 'require',
        'code' => 'require',
        'ip' => 'require',
    ];

    // 错误提示信息
    protected $message  =   [
        'email.require'     => '邮箱必须填写',
        'code.require'   => '验证码未知',
        'ip.require'   => 'ip地址未知',
    ];

    protected $scene = [
        'edit' => ['code']
    ];
}
